<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<style>
			.box {
				width: 200px;
				height: 100px;
				background-color: #f00;
				animation-name: anima;
				animation-duration: 2s;
				/* 
          animation-fill-mode: forwards; 最后一帧动画
          animation-fill-mode: backwards; 第一帧动画
        */
				animation-fill-mode: backwards;
				/* animation-iteration-count: 2; */
				animation-delay: 2s;
				animation-timing-function: ease-in-out;
				animation-direction: alternate;
			}
			@keyframes anima {
				0% {
					transform: translate(0, 0);
				}
				33% {
					transform: translate(0, 200px);
				}
				66% {
					transform: translate(400px, 200px);
				}
				100% {
					transform: translate(400px, 0);
				}
			}
		</style>
	</head>
	<body>
		<div class="box"></div>
	</body>
</html>
